<?php

/**
 * forecast actions.
 *
 * @package    TMD
 * @subpackage forecast
 * @author     Thaihosting
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class forecastActions extends sfActions
{
	/**
	 * Executes index action
	 *
	 * @param sfRequest $request A request object
	 */
	public function executeIndex( sfWebRequest $request ) {

		$dates = TMDService::findInputDailyForecastGeoRegionDates( array() );
		$regions = TMDService::listGeoRegions();
		
		$this->lastForecast = $dates[0];
		$this->forecastDates = $dates;
		$this->regions = $regions;
	}
}
